<div class="header_menu">
    <div class="container">
        <div class="header-nav clearfix">
            <?php echo $this->partial('shop/layout/headerMenu'); ?>
        </div>
    </div>
</div>
</div>
<div class="container breadcrumbs">
    <a href="<?php echo $this->url('shop'); ?>"><?php echo $this->translate('首页'); ?></a>
    <span class="sep">/</span><span><?php echo $this->translate('我的积分'); ?></span>
</div>
<div class="container">
    <div class="uc-full-box">
        <div class="row">
            <div class="span4">
                <?php echo $this->partial('shop/partial/home/leftMenu'); ?>
            </div>
            <div class="span16">
                <div class="xm-line-box uc-box">
                    <h3 class="right-more-title">
                        <?php echo $this->translate('我的积分'); ?>
                    </h3>
                    <div class="box-hd-more">
                        <div class="span16">
                            <div class="span12 pull-left left-menu-more">
                                <div class="uc-order-list-type">
                                    <a href="<?php echo $this->url('home-user-integral', [], ['query' => ['type' => 1]]); ?>" <?php if($this->typeId == 1) echo 'class="current"'; ?>><?php echo $this->translate('消费积分'); ?>&nbsp;[<?php echo $this->userInfo->getIntegralType1Num(); ?>]</a>
                                    <span class="sep">|</span>
                                    <a href="<?php echo $this->url('home-user-integral', [], ['query' => ['type' => 2]]); ?>" <?php if($this->typeId == 2) echo 'class="current"'; ?>><?php echo $this->translate('等级积分'); ?>&nbsp;[<?php echo $this->userInfo->getIntegralType2Num(); ?>]</a>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="box-bd">
                        <?php
                        if ($this->userIntegralLog->getCurrentItemCount() > 0){ ?>
                            <table class="table table-bordered table-hover" style="margin-top: 15px;">
                                <thead>
                                <tr>
                                    <th width="10%"><?php echo $this->translate('积分'); ?></th>
                                    <th width="15%"><?php echo $this->translate('类型'); ?></th>
                                    <th width="15%"><?php echo $this->translate('操作后积分值'); ?></th>
                                    <th width="20%"><?php echo $this->translate('时间'); ?></th>
                                    <th width="40%"><?php echo $this->translate('备注'); ?></th>
                                </tr>
                                </thead>
                                <?php foreach ($this->userIntegralLog as $logValue) { ?>
                                    <tr>
                                        <td><?php echo $logValue->getChangeIntegralNum(); ?></td>
                                        <td><?php echo $this->shopHelper()->userIntegralType($logValue->getIntegralTypeId()); ?></td>
                                        <td><?php echo $logValue->getIntegralNum(); ?></td>
                                        <td><?php echo $this->shopDateFormat()->shopUserIntegralTime($logValue->getIntegralLogTime()); ?></td>
                                        <td><?php echo $this->escapeHtml($logValue->getintegralLogInfo()); ?></td>
                                    </tr>
                                <?php } ?>
                            </table>
                            <div>
                                <?php echo $this->paginationControl($this->userIntegralLog, 'Sliding', 'shop/page', ['route' => 'home-user-integral']); ?>
                            </div>
                        <?php } else { ?>
                            <?php echo $this->translate('暂无记录!'); ?>
                        <?php } ?>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>